﻿using System.Collections.ObjectModel;
using Avalonia.Controls;
using GitNet.WindowsApp.Models;

namespace GitNet.WindowsApp.ViewModels;

public class FolderViewModel : ViewModelBase
{
    private string? _folderPath;
    public string? FolderPath
    {
        get => _folderPath;
        set => SetField(ref _folderPath, value);
    }
    
    public ObservableCollection<FolderModel> Folder { get; set; }

    public FolderViewModel(string folderPath)
    {
        FolderPath = folderPath;
        Folder = new ObservableCollection<FolderModel>(new []{new FolderModel(folderPath)});
    }
}